package com.yowasa.xiuxian.engine.item.danyao;

import com.yowasa.xiuxian.annoations.Item;
import com.yowasa.xiuxian.engine.item.ItemInterface;
import com.yowasa.xiuxian.entity.bo.user.UserBO;
import com.yowasa.xiuxian.entity.enums.ItemTypeEnum;

@Item(name = "泣神丹", type = ItemTypeEnum.DAN_YAO, price = 500)
public class QiShenDan implements ItemInterface {

    @Override
    public String desc() {
        return "降低自己10年寿元,获取2000参悟，秘境宝箱概率获取";
    }

    @Override
    public String effect(UserBO userBO) {
        userBO.getUserConfig().setLife(userBO.getUserConfig().getLife() - 10);
        userBO.getUserConfig().setTravel(userBO.getUserConfig().getTravel() + 2000);

        return "获得了2000参悟" ;

    }


}
